home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Languguage OS 2
/
Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO
/
language
/
embedded
/
mcu11
/
gloadd3b.arc
/
D3BLINK.ASM
< prev
next >
Wrap
Assembly Source File
|
1991-09-09
|
3KB
|
79 lines
******************************************************************************
******************************************************************************
* *
* D3 Bootstrap Down Load Test Program *
* *
******************************************************************************
* *
* Program Name:D3BLINK.ASM *
* Revision: 0.02 *
* Date: 9/09/91 *
* Written By: Robert Chretien *
* Motorola MCU Applications *
* Assembled Under: Motorola Portable Cross Assembler (PASM) or *
* Motorola Freeware Assembler (AS11) *
* Program Description: *
* *
* *
* *
* *
* *
******************************************************************************
* *
* Revision Descriptions: *
* 1. Rev 0.00: Original program. *
* 2. Rev 0.01: Added header and comments. *
* Changes made so LED blinks 16 times then go to Boot ROM. *
* 3. Rev 0.02: Gets boot ROM start address from boot reset vector rather *
* than assuming it will always stay the same. *
* *
******************************************************************************
******************************************************************************
RAM EQU $0040
REGS EQU $0000
EPROM EQU $F000
VECTORS EQU $FFD6
PORTC EQU REGS+$03
PortD EQU REGS+$08
DDRD EQU REGS+$09
CFORC EQU REGS+$0B
TCNT EQU REGS+$0E
TOC2 EQU REGS+$18
TCTL1 EQU REGS+$20
TCTL2 EQU REGS+$21
TMSK1 EQU REGS+$22
TFLG1 EQU REGS+$23
TMSK2 EQU REGS+$24
TFLG2 EQU REGS+$25
OPTION EQU REGS+$39
*
*
*
ORG EPROM
INITIAL LDS #$00FF
LDAA #%00100000
STAA DDRD
LDX #$0010
START LDAA PortD
ANDA #%11011111
STAA PortD
LDY #$F000
DECY1 DEY
BNE DECY1
LDAA PortD
ORAA #%00100000
STAA PortD
LDY #$F000
DECY2 DEY
BNE DECY2
DEX
BNE START
LDX $BFFE
JMP 0,X
*
*
*
END